package com.darren.euc.dao.impl;


import java.util.List;

import org.hibernate.Session;
import org.springframework.stereotype.Repository;

import com.darren.euc.dao.BillDetailDao;
import com.darren.euc.entity.BillDetail;


@Repository
public class BillDetailDaoImpl extends BaseDaoImpl<BillDetail, Integer> implements BillDetailDao {
	
	@SuppressWarnings("unchecked")
	@Override
	public List<BillDetail> getAll() {
		Session session = sessionFactory.getCurrentSession();	
		List<BillDetail> billDetails = session.createQuery("from BillDetail ").list();
		return billDetails;
	}
}